package com.example.sup.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName jack_name_setting
 */
@TableName(value ="jack_name_setting")
@Data
public class JackNameSetting implements Serializable {
    /**
     * 线路名称配置
     */
    @TableId(type = IdType.AUTO)
    private Integer jackNameId;

    /**
     * 线路编号
     */
    private Integer jackNumber;

    /**
     * 预案设置id
     */
    private Integer planSettingId;

    /**
     * 线路名称
     */
    private String jackName;

    /**
     * 线路类型
     */
    private Integer jackType;

    /**
     * 预留字段1
     */
    private String reservedFields1;

    /**
     * 预留字段2
     */
    private String reservedFields2;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String createBy;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private String updateBy;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JackNameSetting other = (JackNameSetting) that;
        return (this.getJackNameId() == null ? other.getJackNameId() == null : this.getJackNameId().equals(other.getJackNameId()))
            && (this.getJackNumber() == null ? other.getJackNumber() == null : this.getJackNumber().equals(other.getJackNumber()))
            && (this.getPlanSettingId() == null ? other.getPlanSettingId() == null : this.getPlanSettingId().equals(other.getPlanSettingId()))
            && (this.getJackName() == null ? other.getJackName() == null : this.getJackName().equals(other.getJackName()))
            && (this.getJackType() == null ? other.getJackType() == null : this.getJackType().equals(other.getJackType()))
            && (this.getReservedFields1() == null ? other.getReservedFields1() == null : this.getReservedFields1().equals(other.getReservedFields1()))
            && (this.getReservedFields2() == null ? other.getReservedFields2() == null : this.getReservedFields2().equals(other.getReservedFields2()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getJackNameId() == null) ? 0 : getJackNameId().hashCode());
        result = prime * result + ((getJackNumber() == null) ? 0 : getJackNumber().hashCode());
        result = prime * result + ((getPlanSettingId() == null) ? 0 : getPlanSettingId().hashCode());
        result = prime * result + ((getJackName() == null) ? 0 : getJackName().hashCode());
        result = prime * result + ((getJackType() == null) ? 0 : getJackType().hashCode());
        result = prime * result + ((getReservedFields1() == null) ? 0 : getReservedFields1().hashCode());
        result = prime * result + ((getReservedFields2() == null) ? 0 : getReservedFields2().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", jackNameId=").append(jackNameId);
        sb.append(", jackNumber=").append(jackNumber);
        sb.append(", planSettingId=").append(planSettingId);
        sb.append(", jackName=").append(jackName);
        sb.append(", jackType=").append(jackType);
        sb.append(", reservedFields1=").append(reservedFields1);
        sb.append(", reservedFields2=").append(reservedFields2);
        sb.append(", createTime=").append(createTime);
        sb.append(", createBy=").append(createBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}